package cst.neu.yuejian_31.activity;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by xxe on 2017/9/27.
 */

public class BaseActivity extends AppCompatActivity {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }
    public String getUserId()
    {
        SharedPreferences sp;
        sp=getSharedPreferences("login", Context.MODE_PRIVATE);
        return  sp.getString("user_id","");
    }
}
